
        
.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;

    background:rgba(255,255,255,.85);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    box-shadow:4px 0 20px rgba(0,0,0,.08);

    transform:translateX(-250px);

    transition:
        transform .7s cubic-bezier(.22,1,.36,1);

    z-index:1000;
}

/* حالت باز */
.sidebar.open{
    transform:translateX(0);
}

/* ===== Handle ===== */

.toggle-tab{
    position:absolute;
    top:20%;
    right:-30px;

    width:30px;
    height:90px;

    background:rgba(255,255,255,.9);

    border-radius:0 10px 10px 0;

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;

    box-shadow:4px 0 12px rgba(0,0,0,.08);
}

/* ===== Arrow ===== */

.arrow{
    width:18px;
    height:18px;
    transition:.4s;
}

.sidebar.open .arrow{
    transform:rotate(180deg);
}

/* ===== Menu ===== */

.menu{
    list-style:none;
    padding:100px 25px;
}

.menu li{
    opacity:0;
    transform:translateX(-30px);

    margin:16px 0;

    transition:
        opacity .45s ease,
        transform .45s ease;
}

/* آبشاری */

.sidebar.open li{
    opacity:1;
    transform:translateX(0);
}

.sidebar.open li:nth-child(1){transition-delay:.08s;}
.sidebar.open li:nth-child(2){transition-delay:.16s;}
.sidebar.open li:nth-child(3){transition-delay:.24s;}
.sidebar.open li:nth-child(4){transition-delay:.32s;}
.sidebar.open li:nth-child(5){transition-delay:.40s;}
.sidebar.open li:nth-child(6){transition-delay:.48s;}
.sidebar.open li:nth-child(7){transition-delay:.56s;}

.menu a{
    text-decoration:none;
    color:#222;
    font-size:18px;
    display:block;
    padding:10px 0;
    transition:.25s;
}

.menu a:hover{
    padding-right:10px;
}

/* ===== Overlay ===== */

.overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;

    transition:.4s;

    z-index:999;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}

/* ===== Responsive ===== */

@media(max-width:768px){

    .sidebar{
        width:230px;
        transform:translateX(-230px);
    }

}


.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
}

/* بخش پلیر */
.player-section {
    background: #000;
    padding: 20px;
    min-width:0;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container video {
    position:absolute;
    top:0;
    left:0;
    width: 100%;
    height:100%
    object-fit:contain;
    display: block;
    border-radius: 12px;
}

/* لیست ویدئوها */
.playlist-section {
    background: #f8f9fa;
    border-right: 1px solid #e5e7eb;
    max-height: 80vh;
    overflow-y: auto;
    direction: rtl;
}

.playlist-header {
    background: white;
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.playlist-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-header h3::before {
    content: "📋";
    font-size: 1.5rem;
}

.video-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    margin: 10px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* انیمیشن hover */
.video-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* انیمیشن تاچ برای موبایل */
.video-item:active {
    transform: translateX(4px) scale(0.99);
    transition: all 0.1s ease;
}

/* آیتم فعال */
.video-item.active {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-right: 4px solid #667eea;
    border-left: 4px solid #764ba2;
}

/* شماره ویدئو */
.video-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
    text-align: center;
    align-self: center;
}

/* اطلاعات ویدئو */
.video-info {
    flex: 1;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.video-title i {
    font-style: normal;
    font-size: 0.9rem;
}

.badge {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #4b5563;
}

.video-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta span::before {
    content: "•";
    color: #667eea;
}

.video-meta span:first-child::before {
    content: "📅";
    margin-left: 4px;
}

.video-meta span:last-child::before {
    content: "💾";
}

/* اسکرول بار سفارشی */
.playlist-section::-webkit-scrollbar {
    width: 6px;
}

.playlist-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.playlist-section::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .playlist-section {
        max-height: 400px;
        border-right: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .video-item:hover {
        transform: translateY(-2px) translateX(4px);
    }
}

/* انیمیشن پله‌ای اضافی */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.video-item {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

.video-item:nth-child(1) { animation-delay: 0.05s; }
.video-item:nth-child(2) { animation-delay: 0.1s; }
.video-item:nth-child(3) { animation-delay: 0.15s; }
.video-item:nth-child(4) { animation-delay: 0.2s; }
.video-item:nth-child(5) { animation-delay: 0.25s; }

/* افکت رپل هنگام کلیک */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(102, 126, 234, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.controls {
    text-align: center;
    margin-top: 20px;
}

.playPauseBtn{
    width:80px;
    height:80px;
    cursor:pointer;
    user-select:none;
    -webkit-tap-highlight-color:transparent;
}

.playPauseBtn circle{
    fill:none;
    stroke:#fff;
    stroke-width:3;
}

.playPauseBtn .playPart,
.playPauseBtn .pausePart{
    fill:#fff;
    transition:all .25s ease;
}

.playPauseBtn.pause .playPart{
    opacity:0;
    transform:scale(0.7);
    transform-origin:center;
}

.playPauseBtn:not(.pause) .pausePart{
    opacity:0;
    transform:scale(0.7);
    transform-origin:center;
}


.fullscreenBtn{
    width:40px;
    height:40px;
    cursor:pointer;
    user-select:none;
    -webkit-tap-highlight-color:transparent;
}

.fullscreenBtn circle{
    fill:none;
    stroke:#fff;
    stroke-width:3;
}

.fullscreenBtn path{
    fill:none;
    stroke:#fff;
    stroke-width:5;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.enterIcon,
.exitIcon{
    transition:all .25s ease;
}

.fullscreenBtn.active .enterIcon{
    opacity:0;
    transform:scale(.7);
    transform-origin:center;
}

.fullscreenBtn:not(.active) .exitIcon{
    opacity:0;
    transform:scale(.7);
    transform-origin:center;
}


.site-header{
width:100%;
max-width:1400px;
height:100px;
margin:auto;

display:flex;
align-items:center;
justify-content:space-between;

padding:14px 25px;

background:rgba(0,0,0,.8);
/*backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);*/

border:1px solid rgba(255,255,255,.15);

border-radius:24px 24px 5px 5px;

box-shadow:
0 8px 32px rgba(0,0,0,.25),
inset 0 1px 0 rgba(255,255,255,.15);
z-index: 999999;
}

/* Logo */

.logo{
font-size:1.4rem;
font-weight:bold;
color:#fff;
text-decoration:none;
}

/* Menu */

.menu1{
display:flex;
list-style:none;
gap:25px;
}

.menu1 a{
color:#fff;
text-decoration:none;
font-size:.95rem;
transition:.3s;
position:relative;
}

.menu1 a:hover{
opacity:.8;
}

.menu1 a::after{
content:'';
position:absolute;
right:0;
bottom:-6px;
width:0;
height:2px;
background:#fff;
transition:.3s;
}

.menu1 a:hover::after{
width:100%;
}

/* Button */

.header-btn{
padding:10px 18px;
border:none;
border-radius:14px;

background:rgba(255,255,255,.2);
color:#fff;

cursor:pointer;
transition:.3s;
}

.header-btn:hover{
background:rgba(255,255,255,.3);
}

/* Mobile */

.menu1-toggle{
display:none;
font-size:28px;
color:#fff;
cursor:pointer;
z-index:999999;
}

@media(max-width:768px){

.menu1-toggle{
display:block;
}

.menu1{
position:absolute;
top:90px;
right:20px;

width:250px;

flex-direction:column;

background:rgba(207,207,207,.12);
backdrop-filter:blur(14px);

border-radius:20px;

padding:20px;

display:none;
z-index:999999;
}

.menu1.active{
display:flex;
}

.header-btn{
display:none;
}
}
